package com.ebase.core.support.dubbo;

import com.github.pagehelper.PageInfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * Package Name:com.ebase.core.support.dubbo.spring
 * Description: That's the purpose of the file
 * Date:2016/7/28 13:35
 * Copyright (c) 2016, zhongmu@suneee.com All Rights Reserved.
 */
public interface BaseProvider<K> {
    @Transactional
    public K update(K record);

    @Transactional
    public void delete(Integer id);

    public K queryById(Integer id);

    public PageInfo<K> query(Map<String, Object> params);

}
